<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%String path = request.getContextPath();%>
<div class="pageContent">
	<div class="tabsContent">
	<div class="pageFormContent" layoutH="56">
		<p>
			<label>商家编码：</label>
			<input value="<s:property value="customerVO.code" />" readonly="readonly" type="text" size="30"/>
		</p>
		<p>
			<label>商家名称：</label>
			<input value="<s:property value="customerVO.name" />" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>合同编码：</label>
			<input value="<s:property value="customerVO.contractCode" />" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>加盟开始时间：</label>
			<input value="<s:date name="customerVO.joinBegtime" format="yyyy-MM-dd" />" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>加盟结束时间：</label>
			<input value="<s:date name="customerVO.joinEndtime" format="yyyy-MM-dd" />" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>联系人：</label>
			<input value="<s:property value="customerVO.linkman" />" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>固定电话：</label>
			<input value="<s:property value="customerVO.telphone" />" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>移动电话：</label>
			<input value="<s:property value="customerVO.mobile" />" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>是否有优惠券：</label>
			<input value="${customerVO.haveFavourable==1?'是':'否'}" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>是否支持联盟优惠：</label>
			<input value="${customerVO.haveAllianceFavourable==1?'是':'否'}" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>是否核心商家：</label>
			<input value="${customerVO.isCoreCustomer==1?'是':'否'}" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>所属省份：</label>
			<input value="${customerVO.province.region}" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>所属市级：</label>
			<input value="${customerVO.city.region}" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>所属城区：</label>
			<input value="${customerVO.district.region}" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>商家分类：</label>
			<input value="${customerKindVO.name}" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>其他来源管理余额：</label>
			<input value="<s:property value="customerVO.balanceUrl" />" type="text" size="30" readonly="readonly"/>		
		</p>
		<p>
			<label>其他计次来源：</label>
			<input value="<s:property value="customerVO.countUrl" />" type="text" size="30" readonly="readonly"/>		
		</p>
		<div class="divider" style="border:0;"></div>
		<dl class="nowrap">
			<dt>商家介绍：</dt>
			<dd>
				<textarea class="textInput" rows="2" cols="80" style="width: 510px; height: 80px;" readonly="readonly"><s:property value="customerVO.introduce" /></textarea>
			</dd>
		</dl>
		<div class="divider" style="border:0;"></div>
		<dl class="nowrap">
			<dt>会员福利：</dt>
			<dd>
				<textarea class="textInput" rows="2" cols="80" style="width: 510px; height: 80px;" readonly="readonly"><s:property value="customerVO.memberBenefits" /></textarea>
			</dd>
		</dl>
		<div class="divider" style="border:0"></div>
		<dl class="nowrap">
			<dt>商家图片：</dt>
			<dd>
				<div style="float: none;width:auto;padding-left: 150px;width:720px">
				<s:iterator value="customerVO.picName.split(',')" id="picName" status="i">
					<div id="pic_div_old_${i.index}" style="border:1 solid #ccc;margin-top:5px;margin-bottom:5px;padding:5px;">
						<b>图片像素：</b>宽<s:property value="#picName.split('_')[1]"/>高<s:property value="#picName.split('_')[2]"/>
						<b style="margin-left:15px">图片：</b><a href="<%=path%>/jsp/common/preview_image.jsp?folder=customer&picNames=${picName}&id=${customerVO.id}" target="dialog" rel="" max="true" title="预览图片" width="800" height="480" style="margin-right: 40px">${picName}</a>
					</div>
				</s:iterator>
				</div>
			</dd>
		</dl>
	</div>
		<div class="formBar">
			<ul>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div>
				</li>
			</ul>
		</div>
	</div>
</div>